import React, { Component } from "react";
import "./header.less";

class Header extends Component {
  constructor(props) {
    super(props);
    console.log(this.props);
  }
  render() {
    return (
      <div className="header">
        <div className="header_item">{this.props.leftSlot}</div>
        <div className="header_item">{this.props.routeName}</div>
        <div className="header_item">{this.props.rightSlot}</div>
      </div>
    );
  }
}

export default Header;
